package service

import (
	sqlc "bgs/db/sqlc"
	"context"
)

// GetStoreEndorsementPtr
func (s *StoreServiceImp) GetStoreEndorsementPtr(ctx context.Context, q *sqlc.Queries, storeID int64) (ptr *sqlc.StoreEndorsement, err error) {
	entity, err := q.GetStoreEndorsementByStoreID(ctx, storeID)
	if err != nil {
		return
	}
	ptr = &entity
	return
}